package com.winhxd.b2c.common.domain.product.condition;

import com.winhxd.b2c.common.domain.common.ApiCondition;
import com.winhxd.b2c.common.domain.search.dto.ProductSearchParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.bytebuddy.agent.builder.AgentBuilder;

import java.util.List;

/**
 * ProductListQueryCondition
 *
 * @Author 李中华
 * @Date 2019/1/7 9:51
 * @Description:
 */
@ApiModel("商品列表按照条件查询类")
@Data
public class ProductListQueryCondition extends ApiCondition{

    @ApiModelProperty("页号")
    private int pageNo = 1;
    @ApiModelProperty("每页条数")
    private int pageSize = 10;
    @ApiModelProperty("排序规则")
    private ProductSearchParam.SortType sortType = ProductSearchParam.SortType.NONE;;
    @ApiModelProperty("搜索文本")
    private String searchText;
    @ApiModelProperty("一级分类Id")
    private List<Integer> categoryOneIdList;
    @ApiModelProperty("二级分类Id")
    private List<Integer> categoryTwoIdList;
    @ApiModelProperty("颜色规格Id")
    private List<Long> colorAttributeOptionIdList;
    @ApiModelProperty("大小规格Id")
    private List<Long> sizeAttributeOptionIdList;
}
